//
//  OYZartViewModel.m
//  开心一刻
//
//  Created by 欧阳政 on 16/4/12.
//  Copyright © 2016年 刘洋. All rights reserved.
//

#import "OYZartViewModel.h"

@implementation OYZartViewModel
+ (NSMutableArray *)jiexiArtview:(NSDictionary *)DIC
{
    NSMutableArray *Array = [NSMutableArray array];
    NSArray *array1 = DIC[@"data"];
    for (NSDictionary *dic1 in array1)
    {
        OYZartViewModel *model = [[OYZartViewModel alloc] init];
        [model setValuesForKeysWithDictionary:dic1];
        [Array addObject:model];
    }
    return Array;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"])
    {
        [self setValue:value forKey:@"myID"];
    }
}
@end
